//
//  XHLuckViewCell.m
//  umibus
//
//  Created by 冷山 on 16/6/18.
//  Copyright © 2016年 lexingsoft. All rights reserved.
//

#import "XHLuckViewCell.h"

@implementation XHLuckViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

-(NSMutableAttributedString*) changeLabelWithText:(NSString*)needText
{
    CGFloat screenHeight=[[UIScreen mainScreen] bounds].size.height;
    if(screenHeight>568)
    {
        NSMutableAttributedString *attrString = [[NSMutableAttributedString alloc] initWithString:needText];
        [attrString addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:17] range:NSMakeRange(0,needText.length-2)];
        [attrString addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:13] range:NSMakeRange(needText.length-2,2)];
        return attrString;
    }
    else
    {
        NSMutableAttributedString *attrString = [[NSMutableAttributedString alloc] initWithString:needText];
        [attrString addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:14] range:NSMakeRange(0,needText.length-2)];
        [attrString addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:10] range:NSMakeRange(needText.length-2,2)];
        return attrString;
    }
}

@end
